import request from "../request";
import Mock from 'mockjs';
// 通过Mock生成模拟数据
const userdata = Mock.mock({
  'list|10': [
    {
      'id|+1': 1,
      'name': '@cname',
      'age|18-60': 1,
      'email': '@email',
    },
  ],
}); 
export const getLogin = (data) => {
//   return request({
//     url: "/api/getApiInfo",
//     method: "get",
//     params: data,
//     config: {
//       timeout: 10000,
//       headers: {
//         "Content-Type": "application/x-www-form-urlencoded",
//       },
//     },
//   });
};

export const getUserInfo = (data) => {
    return request.get({
      url: "/api/getUserInfo",
      params: userdata,
    //   headers: {
    //     'Content-Type': 'application/x-www-form-urlencoded',
    //   },
    });
  };
